package com.frank.demo.service;

/**
 * @author fzy
 * @create 2022/5/17 16:12
 **/
import com.frank.demo.mapper.MyEbookSnapshotMapper;
import com.frank.demo.resp.StatisticResp;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EbookSnapshotService {

    @Resource
    private MyEbookSnapshotMapper myEbookSnapshotMapper;

    public void genSnapshot() {
        myEbookSnapshotMapper.genSnapshot();
    }

    public List<StatisticResp> getStatistic() {
        return myEbookSnapshotMapper.getStatistic();
    }

    public List<StatisticResp> get30Statistic() {
        return myEbookSnapshotMapper.get30Statistic();
    }
}
